//
//  HNTouchProcessor.h
//  HeroNuts
//
//  Created by Vicky on 5/15/11.
//  Copyright 2011 Tongji University. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HNHexTouchDelegateProtocol.h"
#import "cocos2d.h"

@class HNActor;

enum {
    kHNArrowCursor = 0,
    kHNSwordCursor = 1,
    kHNWalkCursor = 2,
    kHNFlyCursor = 3,
    kHNNoneCursor = 4
};

@interface HNTouchProcessor : NSObject <HNHexTouchDelegate>
{
    int cursorMode_;
    NSArray *directions_;
    CCLayer *targetLayer_;
    HNActor *target_;
    CGPoint previousPosition_;
    CGPoint cursorPosition_;
    NSMutableArray *reachablePositionsAroundTarget_;
}

@property (nonatomic,retain) NSMutableArray *reachablePositionsAroundTarget;
@property (nonatomic,assign) HNActor *target;
@property (nonatomic,assign) CCLayer *targetLayer;

- (id)initWithTargetLayer:(CCLayer *)layer;

@end
